package com.fifth.emp.controller;

import com.fifth.common.pojo.dto.CommonResult;
import com.fifth.emp.service.ILocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author 徐志豪
 * @since 2022-09-03
 */
@RestController
@RequestMapping("/emp/location")
public class LocationController {

    @Autowired
    private ILocationService locationService;

    @GetMapping("getLocation")
    public CommonResult getLocation(){
        return locationService.getLocation();
    }
}
